Piwik\Period\Range B

Total Complexity 87
Dependencies 9
Dependents 25
Total lines 552
Lines of code 306
Logical lines of code 181
Comment lines 131
Methods 27
Properties 7

Methods 27

Method Rating Maintainability Complexity Lines of code
processOptimalSubperiods()
C
38 25 64
generate()
A
41 13 57
getDateXPeriodsAgo()
A
48 9 32
getMaxN()
S
58 5 17
fillArraySubPeriods()
S
59 3 15
isEndOfWeekLaterThanEndDate()
S
66 3 8
loadAllFromCache()
S
67 3 8
getRelativeToEndDate()
S
61 2 12
__construct()
S
62 2 11
getDateStart()
S
69 2 7
getCacheId()
S
66 2 8
parseDateRange()
S
68 2 7
getDateEnd()
S
71 2 6
getImmediateChildPeriodLabel()
S
76 1 4
getRangeString()
S
72 1 5
__wakeup()
S
80 1 3
getCache()
S
81 1 3
getNumDaysDifference()
S
73 1 4
getDayCount()
S
78 1 3
getLastDate()
S
78 1 3
getPrettyString()
S
75 1 4
cacheAll()
S
75 1 4
getLocalizedShortString()
S
80 1 3
__sleep()
S
68 1 9
setDefaultEndDate()
S
81 1 3
getLocalizedLongString()
S
80 1 3
getParentPeriodLabel()
S
82 1 3